package china.school.advised;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

// 第二个拦截器实现
class AnotherInterceptor implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("AnotherInterceptor 前置处理");
		Object result = invocation.proceed();
		System.out.println("AnotherInterceptor 后置处理");
		return result;
	}
}
